<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('zhoubao24列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>行别：</label>
                                <input type="text" name="行别"/>
                            </li>
                            <li>
                                <label>需求总数：</label>
                                <input type="text" name="需求总数"/>
                            </li>

                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <!--
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="zhoubao:tran24:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="zhoubao:tran24:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="zhoubao:tran24:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                -->
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="zhoubao:tran24:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('zhoubao:tran24:edit')}]];
        var removeFlag = [[${@permission.hasPermi('zhoubao:tran24:remove')}]];
        var prefix = ctx + "zhoubao/tran24";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "zhoubao24",
                columns: [{
                    checkbox: true
                },
                {
                    field: '行别',
                    title: '行别'
                },
                {
                    field: '需求总数',
                    title: '需求总数'
                },
                {
                    field: '有效需求数',
                    title: '有效需求数'
                },
                {
                    field: '设计中',
                    title: '设计中'
                },
                {
                    field: '开发中',
                    title: '开发中'
                },
                {
                    field: '测试中',
                    title: '测试中'
                },
                {
                    field: '已上线',
                    title: '已上线'
                },
                {
                    field: '本周投产',
                    title: '本周投产'
                },
                {
                    field: '遗留合计',
                    title: '遗留合计'
                },
                {
                    field: '上线率',
                    title: '上线率'
                },
                {
                    field: '计算日期',
                    title: '计算日期'
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>